package com.zzzzzz.app.account.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zzzzzz.app.account.dao.UserActivateDao;
import com.zzzzzz.app.account.model.po.UserActivate;

@Service
public class UserActivateManager {
	@Resource
	private UserActivateDao userActivateDao;
	
	public String findActivateByUserId(Long userId){
		return userActivateDao.findActivateByUserId(userId);
	}
	
	public long findUserIdByActivate(String activate){
		return userActivateDao.findUserIdByActivate(activate);
	}
	
	public void add(UserActivate userActivate){
		userActivateDao.add(userActivate);
	}
	
}
